package com.wosiliujing.learning.entity;

import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @author liujing
 */
public class MyUser extends User {

    @Getter
    private String id;

    public MyUser(String id, String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled,accountNonExpired,credentialsNonExpired,accountNonLocked,authorities);
        this.id = id;
    }
}
